<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt-br">
<?php 
	require_once('functions.php');
	require_once('user.php');
	require_once('checklist.php');
	session_start();
	if(isset($_SESSION['email'])){
		$user = new user($_SESSION['email']);
	}
	else {
	   header('location /labua');
	}

    $allChecklists = checklists();
    $count = 0;
?>
<?php include 'header.php' ?>
	
	<body>
		<?php include 'head.php' ?>
		<div class="content-wrapper">
			<?php include 'sidebar.php' ?>
			<div class="content">
				<div class="resultado">
					<p>
						<ul>
							<?php 
								while ( $count < count($allChecklists) ){
									echo "<li>".$allChecklists[$count]['id']."</li>";
									$count++;
								}
							?>
						</ul>
					</p>
					<a href="/labua">Fazer uma nova Avaliação</a>
				</div>
			</div>
		</div>
	</body>